﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NicoView.Model.Service
{

    

    public class NicoViewNiconicoTagCollection:ObservableCollection<NicoViewNiconicoTag>
    {
        public static readonly int MaxBroadcastTagCount = 10;

        public NicoViewNiconicoTagCollection() : base() { }

        public NicoViewNiconicoTagCollection(IEnumerable<NicoViewNiconicoTag> tags) : base(tags) { }

        public bool CanInsertBroadcastTag
        {
            get
            {
                return this.Count < MaxBroadcastTagCount;
            }
        }

        protected override void InsertItem(int index, NicoViewNiconicoTag tag)
        {
            
            base.InsertItem(index, tag);
                     
            
        }
    }
}
